<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('卡密列表')" />
</head>
<body class="white-bg">
    <form id="formId">
        <input type="hidden" name="orderId" th:value="${orderId}">
    </form>

    <div class="container-div">
        <div class="row">
<!--            <div class="btn-group-sm" id="toolbar" role="group">-->
<!--                <a class="btn btn-success" onclick="addRound()">-->
<!--                    <i class="fa fa-plus"></i> 添加-->
<!--                </a>-->
<!--            </div>-->
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        // var editFlag = [[${@permission.hasPermi('club:match:round:edit')}]];
        // var removeFlag = [[${@permission.hasPermi('club:match:round:remove')}]];
        var prefix = ctx + "fulu/order/cardList"

        $(function() {
            var options = {
                showSearch: false,
                showToggle: false,
                showColumns: false,
                url: prefix + "/list",
                modalName: "卡券列表",
                columns: [{
                    checkbox: true
                },
                    {
                        field : 'id',
                        title : 'id',
                        visible: false
                    },
                    {
                        field : 'cardNumber',
                        title : '卡号'
                    },
                    {
                        field : 'cardPwd',
                        title : '卡密'
                    },
                    {
                        field : 'cardDeadline',
                        title : '卡密有效期'
                    }
                    // {
                    //     title: '操作',
                    //     align: 'center',
                    //     formatter: function(value, row, index) {
                    //         var actions = [];
                    //         actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                    //         actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="removeRound(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                    //         return actions.join('');
                    //     }
                    // }
                    ]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>